package com.daijia.entity.account;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.daijia.entity.IdEntity;

/**
 * 用户详细信息.
 * 
 *  使用JPA annotation定义ORM关系.
 * 使用Hibernate annotation定义JPA 1.0未覆盖的部分.
 * 
 * @author cshi
 */
@Entity
@Table(name = "ACCOUNT_DETAIL")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class AccountDetail extends IdEntity {
	
	@Column(name = "name")
	private String name;
	@Column(name = "id_cards")
	private String idCard;
	@Column(name = "drive_license_id")
	private String driveLicenseID;
	@Column(name = "drive_years")
	private int driveYears;
	@Column(name = "business_id")
	private String businessID;
	@Column(name = "legal_person")
	private String legalPeason;
	@Column(name = "description")
	private String description;
	@Column(name = "website")
	private String website;
	@Column(name = "weibo")
	private String weibo;
	@Column(name = "qq")
	private String qq;
	@Column(name = "msn")
	private String msn;
	@Column(name = "email")
	private String email;
	@Column(name = "verified_flags")
	private String verifiedFlag;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getIdCard() {
		return idCard;
	}
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	public String getDriveLicenseID() {
		return driveLicenseID;
	}
	public void setDriveLicenseID(String driveLicenseID) {
		this.driveLicenseID = driveLicenseID;
	}
	public int getDriveYears() {
		return driveYears;
	}
	public void setDriveYears(int driveYears) {
		this.driveYears = driveYears;
	}
	public String getBusinessID() {
		return businessID;
	}
	public void setBusinessID(String businessID) {
		this.businessID = businessID;
	}
	public String getLegalPeason() {
		return legalPeason;
	}
	public void setLegalPeason(String legalPeason) {
		this.legalPeason = legalPeason;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getWebsite() {
		return website;
	}
	public void setWebsite(String website) {
		this.website = website;
	}
	public String getWeibo() {
		return weibo;
	}
	public void setWeibo(String weibo) {
		this.weibo = weibo;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getMsn() {
		return msn;
	}
	public void setMsn(String msn) {
		this.msn = msn;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getVerifiedFlag() {
		return verifiedFlag;
	}
	public void setVerifiedFlag(String verifiedFlag) {
		this.verifiedFlag = verifiedFlag;
	}
	
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
}
